Just like opening the OSK, make it possible to close it immediately,
we'll make use of this in the next commit.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1760>
this._setEmojiActive(false);
}
- close() {
+ close(immediate = false) {
this._clearShowIdle();
this._keyboardRequested = false;
return;
this._clearKeyboardRestTimer();
+
+ if (immediate) {
+ this._close();
+ return;
+ }
+
this._keyboardRestingId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
KEYBOARD_REST_TIME,
() => {